package com.daocao.ds.api.model;

import com.daocao.ds.api.bean.ResponModel;

import java.util.List;

/**
 * Created by xsooy-pc on 18-11-21.
 */

public class DealDetailModel extends ResponModel {

    /**
     * datas : {"user":{"id":422,"real_name":"肖振华","mobile":"13726824630"},"deal":{"id":1,"user_id":422,"deal_id":1,"number":0,"rush_state":0,"rush_valid_time":null,"use_type":1,"loaner_id":0,"borrow_amount":null,"limit_days":null,"rate":null,"start_time":null,"start_date":null,"repay_money":null,"repay_Stringerest":null,"repay_capital":null,"repay_time":null,"repay_date":null,"has_repay":0,"true_repay_money":null,"true_repay_Stringerest":null,"true_repay_capital":null,"true_repay_time":null,"true_repay_date":null,"created_at":null,"updated_at":null},"base_info":[{"key":"身份信息","value":"已认证","sub":[{"key":"工作岗位","value":"UI设计师"},{"key":"单位名称","value":"东莞市****"}]},{"key":"人脸自拍","value":"已认证"},{"key":"学历信息","value":"已认证"},{"key":"银行卡","value":"已签约银行卡划扣协议"},{"key":"当前单位工龄","value":"2年","sub":[{"key":"工作岗位","value":"UI设计师"},{"key":"单位名称","value":"东莞市****"}]},{"key":"手机号归属地","value":"广东 东莞 中国移动"},{"key":"户籍所在地","value":"广东省 东莞市"}],"expense":[{"key":"淘宝","value":"已认证","sub":[{"key":"消费总额","value":"消费总额"},{"key":"消费笔数","value":"30笔"}]},{"key":"京东","value":"未认证"}],"assets":[{"key":"月收入","value":"5000-7000","sub":[{"key":"房屋性质","value":"私有"},{"key":"取得方式","value":"购买"}]},{"key":"收入形式","value":"银行代发"},{"key":"名下房产","value":"已认证","sub":[{"key":"房屋性质","value":"私有"},{"key":"取得方式","value":"购买"}]},{"key":"名下车产","value":"已认证","sub":[{"key":"车牌号码","value":"粤SGK666"},{"key":"车辆属性","value":"新车"}]}],"socialsecurity":[{"key":"本地社保","value":"连续6个月"},{"key":"本地公积金","value":"无本地公积金"}],"risk":[{"key":"手机号申请借款","value":"1次"},{"key":"身份证号申请借款","value":"1次"},{"key":"信贷逾期","value":"1次"}],"credit":[{"key":"信贷记录","value":"3次"},{"key":"公共记录","value":"3次"},{"key":"查询记录","value":"3次"}]}
     */

    public DatasBean datas;

    public static class DatasBean {
        /**
         * user : {"id":422,"real_name":"肖振华","mobile":"13726824630"}
         * deal : {"id":1,"user_id":422,"deal_id":1,"number":0,"rush_state":0,"rush_valid_time":null,"use_type":1,"loaner_id":0,"borrow_amount":null,"limit_days":null,"rate":null,"start_time":null,"start_date":null,"repay_money":null,"repay_Stringerest":null,"repay_capital":null,"repay_time":null,"repay_date":null,"has_repay":0,"true_repay_money":null,"true_repay_Stringerest":null,"true_repay_capital":null,"true_repay_time":null,"true_repay_date":null,"created_at":null,"updated_at":null}
         * base_info : [{"key":"身份信息","value":"已认证"},{"key":"人脸自拍","value":"已认证"},{"key":"学历信息","value":"已认证"},{"key":"银行卡","value":"已签约银行卡划扣协议"},{"key":"当前单位工龄","value":"2年","sub":[{"key":"工作岗位","value":"UI设计师"},{"key":"单位名称","value":"东莞市****"}]},{"key":"手机号归属地","value":"广东 东莞 中国移动"},{"key":"户籍所在地","value":"广东省 东莞市"}]
         * expense : [{"key":"淘宝","value":"已认证","sub":[{"key":"消费总额","value":"消费总额"},{"key":"消费笔数","value":"30笔"}]},{"key":"京东","value":"未认证"}]
         * assets : [{"key":"月收入","value":"5000-7000"},{"key":"收入形式","value":"银行代发"},{"key":"名下房产","value":"已认证","sub":[{"key":"房屋性质","value":"私有"},{"key":"取得方式","value":"购买"}]},{"key":"名下车产","value":"已认证","sub":[{"key":"车牌号码","value":"粤SGK666"},{"key":"车辆属性","value":"新车"}]}]
         * socialsecurity : [{"key":"本地社保","value":"连续6个月"},{"key":"本地公积金","value":"无本地公积金"}]
         * risk : [{"key":"手机号申请借款","value":"1次"},{"key":"身份证号申请借款","value":"1次"},{"key":"信贷逾期","value":"1次"}]
         * credit : [{"key":"信贷记录","value":"3次"},{"key":"公共记录","value":"3次"},{"key":"查询记录","value":"3次"}]
         */

        public UserBean user;
        public DealBean deal;
        public BaseInfoBean base_info;
        public BaseInfoBean expense;
        public BaseInfoBean assets;
        public BaseInfoBean socialsecurity;
        public BaseInfoBean risk;
        public BaseInfoBean credit;

        public static class UserBean {
            /**
             * id : 422
             * real_name : 肖振华
             * mobile : 13726824630
             */

            public String id;
            public String real_name;
            public String mobile;
            public String age;
            public String address;
            public String education;
        }

        public static class DealBean {
            /**
             * id : 1
             * user_id : 422
             * deal_id : 1
             * number : 0
             * rush_state : 0
             * rush_valid_time : null
             * use_type : 1
             * loaner_id : 0
             * borrow_amount : null
             * limit_days : null
             * rate : null
             * start_time : null
             * start_date : null
             * repay_money : null
             * repay_Stringerest : null
             * repay_capital : null
             * repay_time : null
             * repay_date : null
             * has_repay : 0
             * true_repay_money : null
             * true_repay_Stringerest : null
             * true_repay_capital : null
             * true_repay_time : null
             * true_repay_date : null
             * created_at : null
             * updated_at : null
             */

            public String id;
            public String user_id;
            public String deal_id;
            public String number;
            public String level_id;
            public String rush_state;
            public String rush_valid_time;
            public String use_type;
            public String loaner_id;
            public String borrow_amount;
            public String limit_days;
            public String deal_status;
            public String rate;
            public String overdue_days;
            public String start_time;
            public String start_date;
            public String repay_money;
            public String repay_Stringerest;
            public String repay_capital;
            public String repay_time;
            public String repay_date;
            public String has_repay;
            public String true_repay_money;
            public String true_repay_Stringerest;
            public String true_repay_capital;
            public String true_repay_time;
            public String true_repay_date;
            public String created_at;
            public String updated_at;
        }

        public static class BaseInfoBean {
            /**
             * key : 身份信息
             * value : 已认证
             * sub : [{"key":"工作岗位","value":"UI设计师"},{"key":"单位名称","value":"东莞市****"}]
             */
            public List<KeyVauleBean> lists;
            public String title;
            public static class KeyVauleBean {
                /**
                 * key : 身份信息
                 * value : 已认证
                 * sub : [{"key":"工作岗位","value":"UI设计师"},{"key":"单位名称","value":"东莞市****"}]
                 */

                public String key;
                public String value;
                public List<KeyValueModel> sub;


            }
        }



    }
}
